package org.langqiao.experiment.experiment4;
public abstract class Graphics {
	protected String shape;
	protected Graphics(String shape){
		this.shape=shape;
	}
	public abstract double area();
	public abstract double perimeter();
	
	public void print(){
		System.out.println("该"+this.shape+"的面积为："+area()+",周长为："+perimeter());
	}
}
